<template>
  <div class="footbar">
    <div class="bank">
      <div>
        <ul>
          <li>首页</li>
          <li>-</li>
          <li>关于凯盈</li>
          <li>-</li>
          <li>产品展示</li>
          <li>-</li>
          <li>新闻资讯</li>
          <li>-</li>
          <li>联系我们</li>
        </ul>
      </div>
      <div>
        <ul>
          <li>联系方式：{{ contactMsg.phone }}</li>
          <li>联系人：{{ contactMsg.person }}</li>
          <li>邮箱：{{ contactMsg.email }}</li>
          <li>传真：{{ contactMsg.Fax }}</li>
        </ul>
      </div>
      <p>地址：{{ contactMsg.address }}</p>
      <p>
        Copyright @ Lorem, ipsum dolor sit amet consectetur adipisicing elit.
        Odit, omnis.
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      contactMsg: {},
    }
  },
  mounted() {
    this.getConatctMsg()
  },
  methods: {
    async getConatctMsg() {
      let res = await this.$api.other.contactUs()
      console.log('pppus', res)
      if (res.data.code === 200) {
        this.contactMsg = res.data.result[0]
        this.$store.commit('setContactMsg', this.contactMsg)
        console.log('store', this.$store.state.contactMsg)
      }
    },
  },
}
</script>

<style lang="less" scoped>
.bank {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(101, 101, 101);
  padding-top: 20px;
  border-top: 5px solid rgb(48, 144, 242);
  > div {
    margin: 5px 0;
    > ul {
      list-style: none;
      display: flex;
    }
  }
  > div:nth-child(1) {
    > ul {
      > li {
        color: #000;
        margin: 0 20px;
        font-weight: bold;
      }
    }
  }
  > div:nth-child(2) {
    > ul {
      > li {
        margin: 0 20px;
        font-weight: bold;
      }
    }
  }
  p {
    margin: 5px 0;
  }
}
</style>
